<link href="${rc.getContextPath()}/manage/css/dwzCustomCss/dwz.custom.css?v=${ver}" rel="stylesheet" type="text/css">
<script src="${rc.getContextPath()}/manage/js/dwzCustomJs/dwz.custom.advancedquery.js?v=${ver}" type="text/javascript"></script>
<#include "/common/pagerForm.html">
<form rel="pagerForm" method="post" action="" onsubmit="return navTabSearch(this)">
    <input type="hidden" id="advancedStatus" name="advancedStatus" value="${condition.advancedStatus!''}" />
    <div class="pageHeader">
        <div class="searchBar">
            <ul class="searchContent">
                <li>
                    <label><@label key='materialCode.C,colon'>物料编号：</@label></label> 
                    <input class="look" type="text" name="materialCode" value="${condition.materialCode!''}" 
                    id="materialLookup.materialCode" type="text" postField="materialCode" suggestFields="materialCode,materialText" 
                    suggestUrl="${rc.getContextPath()}/manage/material/componentSuggest" lookupGroup="materialLookup" 
                    />
                    <a class="btnLook" href="${rc.getContextPath()}/manage/material/componentLookUp?lookupType=radio" rel="materialLookup_dialog" title="<@label key='select.C,materialCode.C'>选择物料</@label>"  lookupGroup="materialLookup" ></a>
                </li>
                <li>
                    <label><@label key="moveTypeCode.C,colon">移动类型编号：</@label></label> 
                    <input class="look" type="text" name="moveTypeCode" value="${condition.moveTypeCode!''}" 
                        id="moveTypeCodeGrp.moveTypeCode"  postField="moveTypeCode" suggestFields="moveTypeCode,moveTypeText" 
                        suggestUrl="${rc.getContextPath()}/manage/moveType/moveTypeSuggest?type=all" lookupGroup="moveTypeCodeGrp" 
                    />
                    <a class="btnLook" href="${rc.getContextPath()}/manage/moveType/moveTypeLookUp?type=all" rel="moveTypeCodeGrp_dialog" title="<@label key='select.C,moveTypeCode.C'>选择移动类型</@label>"  lookupGroup="moveTypeCodeGrp" ></a>
                </li>
            </ul>
            <ul class="searchContent">
                <li><label><@label key="inWarehouseCode.C,colon">入库仓库编号：</@label></label> <input class="look" type="text" name="toWarehouseCode" value="${condition.toWarehouseCode!''}" 
                    id="toWarehouseCodeGrp.warehouseCode"  postField="toWarehouseCode" suggestFields="warehouseCode,warehouseText" 
                    suggestUrl="${rc.getContextPath()}/manage/warehouse/warehouseSuggest?type=all" lookupGroup="toWarehouseCodeGrp" 
                    />
                    <a class="btnLook" href="${rc.getContextPath()}/manage/warehouse/warehouseLookUp?type=all" rel="toWarehouseCodeGrp_dialog" title="<@label key='select.C,WarehouseCode.C'>选择仓库编号</@label>"  lookupGroup="toWarehouseCodeGrp" ></a>
                    </li>
                <li><label><@label key="outWarehouseCode.C,colon">出库仓库编号：</@label></label> 
                    <input class="look" type="text" name="fromWarehouseCode" value="${condition.fromWarehouseCode!''}" 
                    id="fromWarehouseCodeGrp.warehouseCode"  postField="fromWarehouseCode" suggestFields="warehouseCode,warehouseText" 
                    suggestUrl="${rc.getContextPath()}/manage/warehouse/warehouseSuggest?type=all" lookupGroup="fromWarehouseCodeGrp" 
                    />
                    <a class="btnLook" href="${rc.getContextPath()}/manage/warehouse/warehouseLookUp?type=all" rel="fromWarehouseCodeGrp_dialog" title="<@label key='select.C,WarehouseCode.C'>选择仓库编号</@label>"  lookupGroup="fromWarehouseCodeGrp" ></a>
                </li>
                <li class="query">
                    <div class="buttonActive">
                        <div class="buttonContent">
                            <button type="submit"><@label key="query.B">查询</@label></button>
                        </div>
                    </div>
                </li>
                <li class="advancedQuery" >            
                    <a href="javascript:void(0);"   onclick="openAdvanced(navTab.getCurrentPanel());">
                        <@label key="advancedQuery.C">高级查询</@label>
                    </a>
                    <span  onclick="openAdvanced(navTab.getCurrentPanel());"></span>            
                </li>
            </ul>
        </div>
    </div>
    <div id="collapsablePanel" style="display:none; "class="pageHeader" >
    <div class="searchBar">
            <ul class="searchContent">
                <li><label><@label key="userCode.C,colon">用户编号：</@label></label> 
                    <input type="text" id="inOutUserCodeGrp.userCode"name="createUser" value="${condition.createUser!''}" 
                      postField="createUser" suggestFields="userCode,userText" 
                      suggestUrl="${rc.getContextPath()}/manage/user/userSuggest" lookupGroup="inOutUserCodeGrp"
                    />
                </li>
                <li>
                    <label><@label key="inWarehouseType.C,colon">入库仓库类型：</@label></label> 
                    <input class="look" type="text" name="toWarehouseTypeCode" value="${condition.toWarehouseTypeCode!''}" 
                    id="toWarehouseTypeCodeGrp.warehouseTypeCode"  postField="toWarehouseTypeCode" suggestFields="warehouseTypeCode,warehouseTypeText" 
                    suggestUrl="${rc.getContextPath()}/manage/warehouseType/warehouseTypeSuggest?type=all" lookupGroup="toWarehouseTypeCodeGrp" 
                    />
                    <a class="btnLook" href="${rc.getContextPath()}/manage/warehouseType/warehouseTypeLookUp?type=all" rel="toWarehouseTypeCodeGrp_dialog" title="<@label key='select.C,WarehouseTypeCode.C'>选择仓库编号</@label>"  lookupGroup="toWarehouseTypeCodeGrp" ></a>
                </li>
                
                <li>
                    <label><@label key="outWarehouseType.C,colon">出库仓库类型：</@label></label> 
                    <input class="look" type="text" name="fromWarehouseTypeCode" value="${condition.fromWarehouseTypeCode!''}" 
                    id="fromWarehouseTypeCodeGrp.warehouseTypeCode"  postField="fromWarehouseTypeCode" suggestFields="warehouseTypeCode,warehouseTypeText" 
                    suggestUrl="${rc.getContextPath()}/manage/warehouseType/warehouseTypeSuggest?type=all" lookupGroup="fromWarehouseTypeCodeGrp" 
                    />
                    <a class="btnLook" href="${rc.getContextPath()}/manage/warehouseType/warehouseTypeLookUp?type=all" rel="fromWarehouseTypeCodeGrp_dialog" title="<@label key='select.C,WarehouseTypeCode.C'>选择仓库编号</@label>"  lookupGroup="fromWarehouseTypeCodeGrp" ></a>
                </li>
                
            </ul>
            <ul class="searchContent">    
                <li >
                    <label ><@label key="opTime.C,colon">操作时间：</@label></label> 
                    <input readonly="readonly" type="text"  name="minCreateDateTime"  max_Date="{maxCreateDateTime}"  class="date" value="${condition.minCreateDateTime}" /> <a class="inputDateButton" href="javascript:;"><@label key="select.B">选择</@label></a>
                </li>
                <li>
                    <label><@label key="to.C,colon">到：</@label></label>
                    <input  readonly="readonly" type="text"  name="maxCreateDateTime" min_Date="{minCreateDateTime}"  class="date" value="${condition.maxCreateDateTime}" /> <a  class="inputDateButton" href="javascript:;"><@label key="select.B">选择</@label></a>
                </li>    
                <li>
                    <label><@label key="toStorageLocationCode.C,colon">入库库位编号：</@label></label> 
                    <input type="text" name="toLocationCode" value="${condition.toLocationCode!''}" />
                </li>
                <li>
                    <label><@label key="fromStorageLocationCode.C,colon">出库库位编号：</@label></label> 
                    <input type="text" name="fromLocationCode" value="${condition.fromLocationCode!''}" />
                </li>
            </ul>
        </div>
    </div>
</form>
<div class="pageContent">
    <div class="panelBar">
        <ul class="toolBar">
          <@buttonRight menuCode="excel_export" labelKey="add.B" defalutName="导出excel">
            <li><a class="export" href="${rc.getContextPath()}/manage/inOutBook/exportInOutBookToExcel" target="multiExport" tableId="iTable" targetType="navTab" title="<@label key='confirmexportToExcel.M'>确定要导出这些记录吗?</@label>"><span><@label key='exportToExcel.D'>导出EXCEL</@label></span></a></li>
            </@buttonRight>
        </ul>
    </div>
    <table class="table" id="iTable" width="100%" layoutH="165" style="overflow:scroll;">
        <thead>
            <tr>
                <th width="32"><@label key="serialNumber.C">序号</@label></th>
                <th width="100" field="createUser" orderField="createUser"<#if (page.orderField?? && page.orderField == 'userCode')>class="${page.orderDirection!''}"</#if>><@label key="userCode.C">用户编号</@label></th>
                <th width="100" field="toWarehouseCode" orderField="toWarehouseCode"<#if (page.orderField?? && page.orderField == 'toWarehouseCode')>class="${page.orderDirection!''}"</#if>><@label key="inWarehouseCode.C">入库仓库编号</@label></th>
                <th width="100" field="toWarehouseText" orderField="toWarehouseText"<#if (page.orderField?? && page.orderField == 'toWarehouseText')>class="${page.orderDirection!''}"</#if>><@label key="inWarehouseText.C"></@label></th>
                <th width="100" field="toLocationCode" orderField="toLocationCode"<#if (page.orderField?? && page.orderField == 'toLocationCode')>class="${page.orderDirection!''}"</#if>><@label key="inStorageLocationCode.C">入库库位编号</@label></th>
                <th width="100" field="fromWarehouseCode" orderField="fromWarehouseCode"<#if (page.orderField?? && page.orderField == 'fromWarehouseCode')>class="${page.orderDirection!''}"</#if>><@label key="outWarehouseCode.C">出库仓库编号</@label></th>
                <th width="100" field="fromWarehouseText" orderField="fromWarehouseText"<#if (page.orderField?? && page.orderField == 'fromWarehouseText')>class="${page.orderDirection!''}"</#if>><@label key="outWarehouseText.C">出库仓库描述</@label></th>
                <th width="100" field="fromLocationCode" orderField="fromLocationCode"<#if (page.orderField?? && page.orderField == 'fromLocationCode')>class="${page.orderDirection!''}"</#if>><@label key="outStorageLocationCode.C">出库库位编号</@label></th>
                <th width="100" field="moveTypeCode" orderField="moveTypeCode"<#if (page.orderField?? && page.orderField == 'moveTypeCode')>class="${page.orderDirection!''}"</#if>><@label key="moveTypeCode.C">移动类型编号</@label></th>
                <th width="100" field="moveTypeText" orderField="moveTypeText"<#if (page.orderField?? && page.orderField == 'moveTypeText')>class="${page.orderDirection!''}"</#if>><@label key="moveTypeText.C">移动类型描述</@label></th>
                <th width="100" field="createDateTime" orderField="createDateTime"<#if (page.orderField?? && page.orderField == 'createDateTime')>class="${page.orderDirection!''}"</#if>><@label key="opTime.C">操作时间</@label></th>
                <th width="100" field="materialCode" orderField="materialCode"<#if (page.orderField?? && page.orderField == 'materialCode')>class="${page.orderDirection!''}"</#if>><@label key="materialCode.C">物料编号</@label></th>
                <th width="100" field="quantity" orderField="quantity"<#if (page.orderField?? && page.orderField == 'quantity')>class="${page.orderDirection!''}"</#if>><@label key="quantity.C">数量</@label></th>
            </tr>
        </thead>
        <tbody>
            <#if page??><#if (page.data?size>0)> <#list page.data as inOutBook>
            <tr target="storageLocation_code" rel="${inOutBook.storageLocationCode!''}">
                <td>${page.startRow + inOutBook_index}</td>
                <td>${inOutBook.createUser!''}</td>
                <td>${inOutBook.toWarehouseCode!''}</td>
                <td>${inOutBook.toWarehouseText!''}</td>
                <td>${inOutBook.toLocationCode!''}</td>
                <td>${inOutBook.fromWarehouseCode!''}</td>
                <td>${inOutBook.fromWarehouseText!''}</td>
                <td>${inOutBook.fromLocationCode!''}</td>
                <td>${inOutBook.moveTypeCode!''}</td>
                <td>${inOutBook.moveTypeText!''}</td>
                <td>${inOutBook.createDateTime?string("yyyy-MM-dd HH:mm:ss")}</td>
                <td>${inOutBook.materialCode!''}</td>
                <td>${inOutBook.quantity!''}</td>
            </tr>
            </#list> <#else>
            <tr target="inOutBook_id">
                    <td colspan="6" class="noData">======<@label key="noListData.C">列表无数据</@label>=====</td>
            </tr>
            </#if><#else>
            <tr target="inOutBook_id">
                    <td colspan="6" class="noData">======<@label key="noListData.C">列表无数据</@label>=====</td>
            </tr>
            </#if>
        </tbody>
    </table>
    <#include "/common/panelBar.html">
</div>

<script>
$(function() {
    initAdvancedQuery(navTab.getCurrentPanel());
});

</script>